package com.my.attendance.entity;

import java.util.Date;

/**
 * 员工表
 */
public class Employee{

	private static final long serialVersionUID = 1L;

	private Integer id;
	private Integer employee_number;//员工编号:登录账号
	private String name;//姓名
	private String gender;//性别
	private Date birthday;//出生日期
	private String telephone;//联系方式
	private String email;//邮箱
	private String address;//籍贯
	private String photo;//照片
	private String education;//学历
	private Integer department_number;//部门编号
	private Integer position_number;//职称编号
	private Date in_time;//入职时间：为方便练习，代码中直接使用的是系统录入时间
	private String password;//密码
	private String notes;//备注

	private Department department;//便于返回部门信息
	private Position position;//便于返回职称

	public Employee() {
	}

	public Employee(Integer id, Integer employee_number, String name, String gender, Date birthday, String telephone, String email, String address, String photo, String education, Integer department_number, Integer position_number, Date in_time, String password, String notes, Department department, Position position) {
		this.id = id;
		this.employee_number = employee_number;
		this.name = name;
		this.gender = gender;
		this.birthday = birthday;
		this.telephone = telephone;
		this.email = email;
		this.address = address;
		this.photo = photo;
		this.education = education;
		this.department_number = department_number;
		this.position_number = position_number;
		this.in_time = in_time;
		this.password = password;
		this.notes = notes;
		this.department = department;
		this.position = position;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getEmployee_number() {
		return employee_number;
	}

	public void setEmployee_number(Integer employee_number) {
		this.employee_number = employee_number;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public Integer getDepartment_number() {
		return department_number;
	}

	public void setDepartment_number(Integer department_number) {
		this.department_number = department_number;
	}

	public Integer getPosition_number() {
		return position_number;
	}

	public void setPosition_number(Integer position_number) {
		this.position_number = position_number;
	}

	public Date getIn_time() {
		return in_time;
	}

	public void setIn_time(Date in_time) {
		this.in_time = in_time;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getNotes() {
		return notes;
	}

	public void setNotes(String notes) {
		this.notes = notes;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public Position getPosition() {
		return position;
	}

	public void setPosition(Position position) {
		this.position = position;
	}
}
